package com.zhiyin.game.bean;

public class Cell {
    private boolean topWall = true;

    private boolean bottomWall = true;

    private boolean leftWall = true;

    private boolean rightWall = true;

    private boolean visited = false;

    private int Mark;

    private int step = 0;

    private Vector2 parentPos = null;

    public Vector2 getParentPos() {
        return parentPos;
    }

    public void setParentPos(Vector2 parentPos) {
        this.parentPos = parentPos;
    }

    public int getStep() {
        return step;
    }

    public void setStep(int step) {
        this.step = step;
    }

    public int getMark() {
        return Mark;
    }

    public void setMark(int mark) {
        Mark = mark;
    }

    public boolean isVisited() {
        return visited;
    }

    public void setVisited(boolean visited) {
        this.visited = visited;
    }

    public boolean isTopWall() {
        return topWall;
    }

    public void setTopWall(boolean topWall) {
        this.topWall = topWall;
    }

    public boolean isBottomWall() {
        return bottomWall;
    }

    public void setBottomWall(boolean bottomWall) {
        this.bottomWall = bottomWall;
    }

    public boolean isLeftWall() {
        return leftWall;
    }

    public void setLeftWall(boolean leftWall) {
        this.leftWall = leftWall;
    }

    public boolean isRightWall() {
        return rightWall;
    }

    public void setRightWall(boolean rightWall) {
        this.rightWall = rightWall;
    }

    @Override
    public String toString() {
        return "Cell{" +
                "topWall=" + topWall +
                ", bottomWall=" + bottomWall +
                ", leftWall=" + leftWall +
                ", rightWall=" + rightWall +
                ", visited=" + visited +
                ", Mark=" + Mark +
                ", step=" + step +
                ", parentPos=" + parentPos +
                '}';
    }
}
